Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add webhook callback url in run workflow form #1035

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

wintonzheng
Copy link
Contributor

@wintonzheng wintonzheng commented Oct 23, 2024

Important

Add webhookCallbackUrl field to RunWorkflowForm with validation and UI changes in RunWorkflowForm.tsx.

  • Behavior:
    • Add webhookCallbackUrl field to RunWorkflowForm in RunWorkflowForm.tsx.
    • Update form submission to include webhookCallbackUrl in the request body if provided.
  • Validation:
    • Add URL validation for webhookCallbackUrl using zod schema.
  • UI:
    • Add new section "Advanced Settings" for webhookCallbackUrl input in the form.

This description was created by Ellipsis for 45e0a5f. It will automatically update as commits are pushed.

…src/'

<!-- ELLIPSIS_HIDDEN -->

> [!IMPORTANT]
> Add `webhookCallbackUrl` field to `RunWorkflowForm` with validation and UI changes in `RunWorkflowForm.tsx`.
>
>   - **Behavior**:
>     - Add `webhookCallbackUrl` field to `RunWorkflowForm` in `RunWorkflowForm.tsx`.
>     - Update form submission to include `webhookCallbackUrl` in the request body if provided.
>   - **Validation**:
>     - Add URL validation for `webhookCallbackUrl` using `zod` schema.
>   - **UI**:
>     - Add new section "Advanced Settings" for `webhookCallbackUrl` input in the form.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=Skyvern-AI%2Fskyvern-cloud&utm_source=github&utm_medium=referral)<sup> for 33008e62a3f1d4d5da1a31d4906b4301d0f8ba4c. It will automatically update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Incremental review on 45e0a5f in 8 seconds

More details
  • Looked at 261 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/RunWorkflowForm.tsx:216
  • Draft comment:
    Consider returning a message indicating that the field is optional when the value is null.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The validation for the webhookCallbackUrl field is not returning a message when the value is null, which might lead to confusion for users. It should return a message indicating that the field is optional or required.

Workflow ID: wflow_P3IckHwgktT22nJJ


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Reviewed everything up to 45e0a5f in 7 seconds

More details
  • Looked at 261 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/RunWorkflowForm.tsx:213
  • Draft comment:
    Consider using zod's built-in validation directly in the useForm hook to avoid duplicating validation logic for webhookCallbackUrl.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The validation logic for the webhookCallbackUrl field is duplicated. It can be simplified by using zod's built-in validation directly in the useForm hook.

Workflow ID: wflow_7pR2JNDCRBsVTYsA


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@msalihaltun msalihaltun merged commit 2798c4c into main Oct 23, 2024
2 checks passed
@msalihaltun msalihaltun deleted the salih/webhook-callback-url-in-workflow-run branch October 23, 2024 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants